const fs = require('fs');
const path = require('path');
const readPath = path.join(__dirname, 'gongzi.bak.bak.txt');
const writePath = path.join(__dirname, 'gongzi.bak.bak.bak.txt');
const readStream = fs.createReadStream(readPath);
const writeSteam = fs.createWriteStream(writePath);
readStream.on('data',(chunk) => {
    writeSteam.write(chunk);
});
readStream.on('end', (chunk) => {
    console.log('备份完毕');
});